<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
  <meta charset="UTF-8">
  <title th:text="${webAppName} + ' Auth ...'"></title>
  <link rel="icon" th:href="@{/images/web-page.png}" sizes="any" type="image/png"/>

  <!-- 获取飞书授权码之后，打开浏览器。浏览器中打开授权回调页面，实现工作台点击应用浏览器打开效果。 -->
  <script th:inline="javascript">
        window.onload = function () {
          // 获取浏览器地址参数
          var params = new URLSearchParams(window.location.search);
            var codeValue = params.get('code');

            console.log(codeValue);
            let xxAppAddress = /*[[${xxAppAddress}]]*/ '';

            window.open(xxAppAddress + "/auth?code=" + codeValue);
            window.close();
        };
  </script>
</head>
<body>
</body>
</html>